package com.isoftstone.industry.aaa.core.service.email.entity;

import java.util.List;

public class BillItemDetailTpl {
	private String id;

	private String name;

	private double amount;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public static BillItemDetailTpl getById(String id,
			List<BillItemDetailTpl> data) {
		if (data != null) {
			for (BillItemDetailTpl d : data) {
				if (d.getId().equalsIgnoreCase(id)) {
					return d;
				}
			}
		}
		return null;
	}
}
